﻿@model PurchaseOrder
@{ 
    List<PurchaseOrderLine> salesOrderLineList= ViewData["PurchaseOrderLines"] ==null?new List<PurchaseOrderLine>(): ViewData["PurchaseOrderLines"] as List<PurchaseOrderLine>;
}
@section ToolBar{}
<div class="l-m-detail">
    @Html.LDetailItemFor(m => m.PurchaseOrderNo)
    @Html.LDetailItemFor(m => m.OrderEmployee.EmployeeName)
    @Html.LDetailItemFor(m => m.Provider.CompanyName)
    @Html.LDetailItemFor(m => m.Store.StoreName)
    @Html.LDetailItemFor(m => m.ContactName, false)
    @Html.LDetailItemFor(m => m.Phone, false)
   
    <div class="form-item l-m-table form l-margin-t20">
        <table>
            <tr class="bgc3">
                <th>商品编号</th>
                <th>商品名称</th>
                <th>规格</th>
                <th>单位</th>
                <th>批号</th>
                <th>数量</th>
                <th>单价</th>
                <th>金额</th>
                <th>备注</th>
            </tr>
            @foreach (var op in salesOrderLineList)
            {
                <tr>
                    <td>@op.ProductNo</td>
                    <td>@op.ProductName</td>
                    <td>@op.Spec</td>
                    <td>@op.Unit</td>
                    <td>@op.LotNo</td>
                    <td>@op.Quantity.QuantityFormat()</td>
                    <td>@op.Price.MoneyFormat()</td>
                    <td>@op.Amount.QuantityFormat()</td>
                    <td>@op.Remark</td>
                </tr>
            }
        </table>
    </div>
    <div class="detail-item">
        <div class="label c5">实际金额</div>
        <div class="content">@Model.ActualAmount.MoneyFormat()</div>
    </div>
    <div class="detail-item">
        <div class="label c5">已结算金额</div>
        <div class="content">@Model.SettleedAmount.MoneyFormat()</div>
    </div>
    @Html.LDetailItemFor(m => m.Remark)
    @Html.LDetailItemFor(m => m.DeliveryRemark)

</div>